<ui:composition template="/templates/contentTempl.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a="http://richfaces.org/a4j" xmlns:r="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">
	<ui:define name="title">Създаване на група</ui:define>
	<ui:define name="pageLabel">
		<f:view>
			<h:outputText value="Създаване на група" />
		</f:view>
	</ui:define>
	<ui:define name="topCenterSideContent">
		<a:keepAlive beanName="attributes" />
		<f:view>
			<h:form id="frmsearchObj">
				<h:panelGrid width="100%">
					<r:panel header="Групи">
						<h:outputText value="Избор на група" />
						<h:selectOneMenu value="#{attributes.selectedGroup}">
							<f:selectItems value="#{attributes.nomModulElements}" />
						</h:selectOneMenu>
					</r:panel>
					<h:outputText value="Име на атрибута" />
					<h:inputText value="#{attributes.attributeName}" />
					<h:outputText value="Системно име на атрибута" />
					<h:inputText value="#{attributes.uniqname}" />
					<h:outputText value="Тип на атрибута" />
					<h:selectOneMenu value="#{attributes.selectedAttrType}">
						<f:selectItems value="#{attributes.nomAttributeType}" />
					</h:selectOneMenu>
					<h:outputText value="Пореден номер на атрибута" />
					<h:inputText value="#{attributes.ordering}" />
					<h:panelGroup>
						<h:selectBooleanCheckbox value="#{attributes.isRequired}" />
						<r:spacer styleClass="space-horizontal" />
						<h:outputText value="Задължително поле" />
					</h:panelGroup>
					<h:panelGrid styleClass="container-right">
						<a:commandButton id="btnId" value="Запис"
							type="submit" action="#{attributes.saveAttribute}" reRender="mainPanel" />
					</h:panelGrid>
				</h:panelGrid>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>